<div class="section">
        <?php
        $this->widget('AdminBankMenu', array(
            'bank_id' => $model->id,
            'bank_title' => $model->title,
        ));
        ?>
<?if(Yii::app()->user->hasFlash('opersuc')):?>
    <div class="messages green" title="Клик, чтобы скрыть" onclick="$(this).fadeOut();" style="cursor:pointer;float:left;clear: both;padding-right: 10px;"><span></span><?=Yii::app()->user->getFlash('opersuc');?> </div>
<? endif ?>
		<div class="box">
			<div class="title">
				<h2><?=Yii::t('app','Список новостей')?></h2>
				<span class="hide"></span>
			</div>
			<div class="content">
<a href="<?=$this->createUrl('/banks/user/bank_id/'.$model->id);?>" class="button green" style="opacity: 1; "><?=Yii::t('app','Добавить пользователя')?></a>
                <br/><br/>
<?=CHtml::beginForm(); ?>
        <table cellspacing="0" cellpadding="0" border="0"  class="table-all">
            <thead>
                <tr>
                    <th><input type="checkbox" name="check" class="checkall"></th>
                    <th class="header"><?=Yii::t('app','Пользователь')?></th>
                    <th class="header"><?=Yii::t('app','Банк')?></th>
                    <th class="header"><?=Yii::t('app','Последний вход')?></th>
                    <th></th>
                </tr>
             </thead>
             <tbody>
        <?$i=0;?>
        <? foreach ($users as $item): ?>
        <tr class="
        <?
            if(($i % 2) == 0) echo "odd";
              else echo "even";
                $i++;
        ?>
        ">
                    <td><input type="checkbox" name="check[<?=$item->id;?>]"></td>
                    <td>
                        <a href="<?= $this->createUrl('banks/user', array('id' => $item->id,'bank_id'=>$model->id)) ?>" class="green"><b><?= $item->lastname ?></b></a><br>
                        <span class="sz11"><?= Yii::t('app', 'Mail') ?>: <?= $item->email ?></span><br>
                        <span class="sz11"><?= Yii::t('app', 'Тел.') ?>: <?= $item->phone ?></span><br>
                    </td>
                    <td>
                        <b><?=$item->banks->title?></b><br/>
                        <a href="<?= $this->createUrl('banks/bankPointsEdit', array('id' => $item->mcPoints->id,'bank_id'=>$model->id)) ?>" class="green"><?=$item->bankPoints->title?></a><br>
                        <span class="sz11">г. Санкт-Петербург и обл.</span><br>
                        <span class="sz11"><?= $item->user_post ?></span>
                    </td>
                    <td>
                        <span><?= Yii::t('app', 'Последний вход') ?>:</span>
                        <div class="green sz11"><?= date('d.m.Y', strtotime($item->last_login)) ?></div>
                    </td>
                    <td>
                        <a href="<?=$this->createUrl("banks/user/id/$item->id/bank_id/$model->id");?>"><img src="<?= Yii::app()->theme->baseUrl ?>/gfx/icon-edit.png" alt="edit"></a>
                        <?=CHtml::link('<img src="'.Yii::app()->theme->baseUrl.'/gfx/icon-delete.png" alt="delete">',$this->createUrl("banks/deleteuser/id/$item->id/bank_id/$model->id"),array('',
                                                   'confirm'=>'Вы уверены что хотите удалить этот элемент?'))?>
                    </td>
                </tr>
        <? endforeach ?>
            </tbody>
        </table>
				<div id="pager" class="pager">

						<!--<button type="submit" class="red">
                                                    <span>
                                                        <?php //echo Yii::t('app','Удалить выбранное');?>
                                                    </span>
                                                </button>-->
						<div>
							<img src="<?= Yii::app()->theme->baseUrl ?>/gfx/table-first.gif" class="first" alt="First">
							<img src="<?= Yii::app()->theme->baseUrl ?>/gfx/table-prev.gif" class="prev" alt="Previous">
							<input type="text" class="pagedisplay">
							<img src="<?= Yii::app()->theme->baseUrl ?>/gfx/table-next.gif" class="next" alt="Next">
							<img src="<?= Yii::app()->theme->baseUrl ?>/gfx/table-last.gif" class="last" alt="Last">
						</div>

                                                <select class="pagesize" tabindex="-1">
                                                    <option selected="selected" value="5">5</option>
                                                    <option value="10">10</option>
                                                    <option value="25">25</option>
                                                    <option value="50">50</option>
                                                </select>
                     
                       
						<?=CHtml::endForm(); ?>
				</div>
			</div>
		</div>